<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="author" content="林镭特">
    <title></title>
    <style>
         body{
            margin: 0;
        }
        ul{
            padding: 0;
            margin: 0;
            list-style: none;
        }
        .container{
            width: 1260px;
            margin: 0 auto;
        }
        header{
            height: 40px;
            background-color: #333;
        }
        nav{
            height: 100px;
            background-color: #fff;
            position: relative;
        }
        .nav{
            height: 100%;
            display: flex;
            /* background-color: lightblue; */
        }
        .nav .logo{
            width: 55px;
            height: 55px;
            background-color: #ff6700;
            margin-top: 22.5px;
        }
        .nav .logo a{
            display: inline-block;
            width: 100%;
            height: 100%;
            background: url('./img/mi-logo.png') 5px 0;
        }
        .nav-list{
            height: 100%;
            display: flex;
            margin-left: 100px;
            /* background-color: red; */
        }
        .nav-list li{
            cursor: pointer;
            height: 100%;
            line-height: 100px;
            padding: 0 10px;
        }
        .sub-nav{
            position: absolute;
            width: 100%;
            height: 230px;
            background-color: #fff;
            border-top: 1px solid #ccc;
            box-shadow: 0 3px 3px #ccc;
            display: none;
        }
        .sub-nav>div{
            position: relative;
        }
        .sub-nav .sub-list{
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            display: none;
            display: flex;
        }
        .banner img{
            width: 100%;
        }
        .title{
            text-align: center;
            font-size: 12px;
        }
        .price{
            text-align: center;
            font-size: 12px;
            color: #ff6700;
        }
        .sub-list li img{
            width: 160px;
            height: 110px;
        }
    </style>
</head>
<body>
    <header>
        <div class="container">
            小米商城
        </div>
    </header>
    <nav>
        <div class="container nav">
            <div class="logo">
                <a href=""></a>
            </div>
            <ul class="nav-list">
                <li>小米手机</li>
                <li>Redmi手机</li>
                <li>电视</li>
                <li>笔记本</li>
                <li>家电</li>
                <li>路由器</li>
                <li>智能硬件</li>
                <li>服务</li>
                <li>社区</li>
            </ul>
        </div>
        <div class="sub-nav">
            <div class="container">
                <ul class="sub-list">
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82ddffd7562c54f9166fa876c143ff22.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米10 Pro</p>
                        <p class="price">4999元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82ddffd7562c54f9166fa876c143ff22.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米10 Pro</p>
                        <p class="price">4999元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82ddffd7562c54f9166fa876c143ff22.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米10 Pro</p>
                        <p class="price">4999元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82ddffd7562c54f9166fa876c143ff22.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米10 Pro</p>
                        <p class="price">4999元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82ddffd7562c54f9166fa876c143ff22.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米10 Pro</p>
                        <p class="price">4999元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82ddffd7562c54f9166fa876c143ff22.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米10 Pro</p>
                        <p class="price">4999元起</p>
                    </li>
                   
                </ul>
                <ul class="sub-list">
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/cff2977b8aab1e43b94b2f00083f4ae1.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi K30</p>
                        <p class="price">1599元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/cff2977b8aab1e43b94b2f00083f4ae1.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi K30</p>
                        <p class="price">1599元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/cff2977b8aab1e43b94b2f00083f4ae1.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi K30</p>
                        <p class="price">1599元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/cff2977b8aab1e43b94b2f00083f4ae1.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi K30</p>
                        <p class="price">1599元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/cff2977b8aab1e43b94b2f00083f4ae1.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi K30</p>
                        <p class="price">1599元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/cff2977b8aab1e43b94b2f00083f4ae1.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi K30</p>
                        <p class="price">1599元起</p>
                    </li>
                    
                </ul>
                <ul class="sub-list">
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6917267948c54c647d2009a98637aac6.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi 红米电视 70英寸 R70A</p>
                        <p class="price">3299元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6917267948c54c647d2009a98637aac6.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi 红米电视 70英寸 R70A</p>
                        <p class="price">3299元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6917267948c54c647d2009a98637aac6.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi 红米电视 70英寸 R70A</p>
                        <p class="price">3299元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6917267948c54c647d2009a98637aac6.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi 红米电视 70英寸 R70A</p>
                        <p class="price">3299元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6917267948c54c647d2009a98637aac6.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi 红米电视 70英寸 R70A</p>
                        <p class="price">3299元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6917267948c54c647d2009a98637aac6.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">Redmi 红米电视 70英寸 R70A</p>
                        <p class="price">3299元</p>
                    </li>
                   
                </ul>
                <ul class="sub-list">
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6abc701fb3cf48f2c7a3fd5ef053529a.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">RedmiBook 13</p>
                        <p class="price">4199元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6abc701fb3cf48f2c7a3fd5ef053529a.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">RedmiBook 13</p>
                        <p class="price">4199元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6abc701fb3cf48f2c7a3fd5ef053529a.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">RedmiBook 13</p>
                        <p class="price">4199元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6abc701fb3cf48f2c7a3fd5ef053529a.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">RedmiBook 13</p>
                        <p class="price">4199元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6abc701fb3cf48f2c7a3fd5ef053529a.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">RedmiBook 13</p>
                        <p class="price">4199元起</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6abc701fb3cf48f2c7a3fd5ef053529a.jpg?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">RedmiBook 13</p>
                        <p class="price">4199元起</p>
                    </li>
                   
                </ul>
                <ul class="sub-list">
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/03dc85cd792904ddc8027b2d781beed8.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">米家互联网空调C1（一级能效）</p>
                        <p class="price">2399元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/03dc85cd792904ddc8027b2d781beed8.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">米家互联网空调C1（一级能效）</p>
                        <p class="price">2399元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/03dc85cd792904ddc8027b2d781beed8.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">米家互联网空调C1（一级能效）</p>
                        <p class="price">2399元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/03dc85cd792904ddc8027b2d781beed8.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">米家互联网空调C1（一级能效）</p>
                        <p class="price">2399元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/03dc85cd792904ddc8027b2d781beed8.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">米家互联网空调C1（一级能效）</p>
                        <p class="price">2399元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/03dc85cd792904ddc8027b2d781beed8.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">米家互联网空调C1（一级能效）</p>
                        <p class="price">2399元</p>
                    </li>
                   
                </ul>
                <ul class="sub-list">
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/359d3c63cc159949d8fe147a11b4bc40.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米AIoT路由器AX3600</p>
                        <p class="price">599元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/359d3c63cc159949d8fe147a11b4bc40.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米AIoT路由器AX3600</p>
                        <p class="price">599元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/359d3c63cc159949d8fe147a11b4bc40.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米AIoT路由器AX3600</p>
                        <p class="price">599元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/359d3c63cc159949d8fe147a11b4bc40.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米AIoT路由器AX3600</p>
                        <p class="price">599元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/359d3c63cc159949d8fe147a11b4bc40.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米AIoT路由器AX3600</p>
                        <p class="price">599元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/359d3c63cc159949d8fe147a11b4bc40.png?thumb=1&w=200&h=138&f=webp&q=90" alt="">
                        <p class="title">小米AIoT路由器AX3600</p>
                        <p class="price">599元</p>
                    </li>
                   
                </ul>
                <ul class="sub-list">
                    <li>
                        <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-mimall-media/2a500be4264c692899b25d86c16403f7.jpg?thumb=1&w=200&h=138" alt="">
                        <p class="title">小米米家智能摄像机云台版</p>
                        <p class="price">179元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-mimall-media/2a500be4264c692899b25d86c16403f7.jpg?thumb=1&w=200&h=138" alt="">
                        <p class="title">小米米家智能摄像机云台版</p>
                        <p class="price">179元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-mimall-media/2a500be4264c692899b25d86c16403f7.jpg?thumb=1&w=200&h=138" alt="">
                        <p class="title">小米米家智能摄像机云台版</p>
                        <p class="price">179元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-mimall-media/2a500be4264c692899b25d86c16403f7.jpg?thumb=1&w=200&h=138" alt="">
                        <p class="title">小米米家智能摄像机云台版</p>
                        <p class="price">179元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-mimall-media/2a500be4264c692899b25d86c16403f7.jpg?thumb=1&w=200&h=138" alt="">
                        <p class="title">小米米家智能摄像机云台版</p>
                        <p class="price">179元</p>
                    </li>
                    <li>
                        <img src="https://cdn.cnbj0.fds.api.mi-img.com/b2c-mimall-media/2a500be4264c692899b25d86c16403f7.jpg?thumb=1&w=200&h=138" alt="">
                        <p class="title">小米米家智能摄像机云台版</p>
                        <p class="price">179元</p>
                    </li>
                    
                </ul>
            </div>
        </div>
    </nav>
    <div class="container banner">
        <img src="./img/m-01.jpg" alt="">
    </div>
    <script src="jQuery.js"></script>
<script>
       $('.nav-list li').hover(function(){
        var index = $(this).index();
        if (index < 7) {
            $('.sub-nav').stop().slideDown(200);
            $('.sub-list').eq(index).show().siblings().hide();
        } else {
            $('.sub-nav').stop().slideUp(200);
        }
    });

    $('.nav-list').mouseleave(function(){
        $('.sub-nav').stop().slideUp(200);
    });
    $('.sub-nav').hover(function(){
        $(this).stop().slideDown(200);
    }, function(){
        $(this).stop().slideUp(200);
    });
</script>
</body>
</html>